using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_subsItemMap : EntityTypeConfiguration<t_subsItem>
    {
        public t_subsItemMap()
        {
            // Primary Key
            this.HasKey(t => t.FInterID);

            // Properties
            this.Property(t => t.FInterID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FNote)
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_subsItem");
            this.Property(t => t.FInterID).HasColumnName("FInterID");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FsubsItemID).HasColumnName("FsubsItemID");
            this.Property(t => t.FOrder).HasColumnName("FOrder");
            this.Property(t => t.FapplicableItem).HasColumnName("FapplicableItem");
            this.Property(t => t.FApplicableBOM).HasColumnName("FApplicableBOM");
            this.Property(t => t.FRate).HasColumnName("FRate");
            this.Property(t => t.FsubsRate).HasColumnName("FsubsRate");
            this.Property(t => t.FeachOther).HasColumnName("FeachOther");
            this.Property(t => t.FNote).HasColumnName("FNote");
            this.Property(t => t.FPriorityID).HasColumnName("FPriorityID");
            this.Property(t => t.FStatus).HasColumnName("FStatus");
            this.Property(t => t.FCheckerId).HasColumnName("FCheckerId");
            this.Property(t => t.FCheckDate).HasColumnName("FCheckDate");
            this.Property(t => t.FEnabledDate).HasColumnName("FEnabledDate");
            this.Property(t => t.FDisabledDate).HasColumnName("FDisabledDate");
        }
    }
}
